//
//  CommonConfigHeaderView.h
//  GCDBenchmark
//
//  Created by Claude on 2025/10/13.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CommonConfigHeaderDelegate <NSObject>
- (void)taskCountDidChange:(NSInteger)newValue;
- (void)taskDurationDidChange:(NSInteger)newValue;
- (void)taskTypeDidChange:(NSInteger)newType;
- (void)sleepSecondsDidChange:(NSInteger)newValue;
- (void)qosClassDidChange:(NSInteger)newQoS;
@end

@interface CommonConfigHeaderView : UIView

@property (nonatomic, weak) id<CommonConfigHeaderDelegate> delegate;
@property (nonatomic, assign, readonly) BOOL isExpanded;

- (void)updateWithTaskCount:(NSInteger)taskCount
                taskDuration:(NSInteger)taskDuration
                    taskType:(NSInteger)taskType
                sleepSeconds:(NSInteger)sleepSeconds
                    qosClass:(NSInteger)qosClass;

@end

NS_ASSUME_NONNULL_END
